<script lang="ts" setup>

</script>
<template>
  <section class="cartLineUtil">
    <span><slot>分割线</slot></span>
  </section>
</template>

<style lang="less" scoped>
.cartLineUtil {
  width: 3.75rem;
  height: .42rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  span {
    font-size: 12px;
    color: #999;
    background: #f7f7f7;;
    position: relative;
    z-index: 3;
    padding: 0 .15rem;
     &::before {
      content: "";
      position: absolute;
      left: 0;
      top: 50%;
      margin-top: -.02rem;
      width: .04rem;
      height: .04rem;
      background-color: #ccc;
      transform: rotate(45deg);
    }
    &::after {
      content: "";
      position: absolute;
      right: 0;
      top: 50%;
      margin-top: -.02rem;
      width: .04rem;
      height: .04rem;
      background-color: #ccc;
      transform: rotate(45deg);
    }
   
  }
  &::after{
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    background-color: #ccc;
    height: .01rem;
    left: 0;
    right: 0;
    top: 0;
    left: .1rem;
    right: .1rem;
    top: 50%;
 }
 
}
</style>

